<div class="tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
  <ul class="tab-menu ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
    <li class="ui-state-default ui-corner-top ui-tabs-selected ui-state-active">
      <a href="#user-details-tab"><span><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.details') ?></span></a>
    </li>
    <li class="ui-state-default ui-corner-top">
      <a href="#user-password-tab"><span><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.password') ?></span></a>
    </li>
  </ul>
  <!-- Content tab -->
  <div id="user-details-tab" class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom">
    <fieldset>
      <ul>
        <li class="even">
          <label for="first_name">
            <?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.first_name') ?>
          </label>
          <div class="input">
            <input type="text" id="first_name" name="first_name" 
                   value="<?php echo empty($obj['first_name']) ? '' : $obj['first_name'] ?>" >
          </div>
        </li>
        <li>
          <label for="last_name"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.last_name') ?></label>
          <div class="input">
            <input type="text" id="last_name" value="<?php echo empty($obj['last_name']) ? '' : $obj['last_name'] ?>" name="last_name">
          </div>
        </li>
        <li>
          <label for="username"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.username') ?> <span>*</span></label>
          <div class="input">
            <input type="text" id="username"
                   value="<?php echo empty($obj['username']) ? '' : $obj['username'] ?>" name="username">
          </div>
        </li>
        <li class="even">
          <label for="display_name"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.display_name') ?></label>
          <div class="input">
            <input type="text" id="display_name" value="<?php echo empty($obj['display_name']) ? '' : $obj['display_name'] ?>" name="display_name">
          </div>
        </li>
        <li>
          <label for="group_id"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.group') ?></label>
          <div class="input">
            <select id="group_id" name="group_id" class="chzn chzn-done" style="visibility: visible;">
              <option value="">
                <?php echo $this->lang->line('label.option.select') ?>
              </option>
              <?php 
              $ref_objs = $this->group_model->get_all();
              foreach ($ref_objs as $group) {
              ?>
                <option value="<?php echo $group['id'] ?>"
                        <?php echo empty($obj['group_id']) || $obj['group_id'] != $group['id'] ? '' : 'selected="selected"' ?>>
                  <?php echo $this->group_model->to_string($group) ?></option>
              <?php } ?>
            </select>
          </div>
        </li>
        <li class="even">
          <label for="is_active"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.is_active') ?></label>
          <div class="input">
            <input type="checkbox" id="is_active" value="1" name="is_active" <?php echo isset($obj['is_active']) && $obj['is_active'] ? 'checked="checked"' : '' ?>>
          </div>
        </li>
      </ul>
    </fieldset>
  </div>
  <div id="user-password-tab" class="form_inputs ui-tabs-panel ui-widget-content ui-corner-bottom">
    <fieldset>
      <ul>
        <li class="even">
          <label for="password">
            <?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.password') ?><span>*</span>
          </label>
          <div class="input">
            <input type="password" autocomplete="off"
                   id="password" value="" name="password">						
          </div>
        </li>
        <li class="even">
          <label for="confirm_pass"><?php echo $this->lang->line('label.' . $this->router->fetch_class() . '.confirm_pass') ?><span>*</span></label>
          <div class="input">
            <input type="password" autocomplete="off"
                   id="confirm_pass" value="" name="confirm_pass">						
          </div>
        </li>
      </ul>
    </fieldset>
  </div>
</div>